/**
 *  @description 前端权限统一出口
 *  主项目的权限配置，只是给前端用，需要使用sql注入到后端资源池中
 *  命名：模块名+按钮 如：Namespace.uns_import
 *  **/

export const ButtonPermission = {
  // Home
  'Home.import': 'Home.import',
  'Home.export': 'Home.export',
  // UNS
  'uns.unsImport': 'Namespace.uns_import',
  'uns.unsExport': 'Namespace.uns_export',
  'uns.batchGeneration': 'Namespace.uns_batch_generation',
  'uns.labelDetail': 'Namespace.label_detail',
  'uns.labelDelete': 'Namespace.label_delete',
  'uns.labelAdd': 'Namespace.label_add',
  'uns.folderDetail': 'Namespace.folder_detail',
  'uns.folderDelete': 'Namespace.folder_delete',
  'uns.folderCopy': 'Namespace.folder_copy',
  'uns.folderPaste': 'Namespace.folder_paste',
  'uns.folderAdd': 'Namespace.folder_add',
  'uns.fileDetail': 'Namespace.file_detail',
  'uns.fileDelete': 'Namespace.file_delete',
  'uns.fileCopy': 'Namespace.file_copy',
  'uns.filePaste': 'Namespace.file_paste',
  'uns.fileAdd': 'Namespace.file_add',
  'uns.templateDetail': 'Namespace.template_detail',
  'uns.templateDelete': 'Namespace.template_delete',
  'uns.templateCopy': 'Namespace.template_copy',
  'uns.templateAdd': 'Namespace.template_add',
  // 数据连接 - nodered
  'SourceFlow.add': 'SourceFlow.add',
  'SourceFlow.edit': 'SourceFlow.edit',
  'SourceFlow.delete': 'SourceFlow.delete',
  'SourceFlow.design': 'SourceFlow.design',
  'SourceFlow.save': 'SourceFlow.save',
  'SourceFlow.deploy': 'SourceFlow.deploy',
  'SourceFlow.import': 'SourceFlow.import',
  'SourceFlow.export': 'SourceFlow.export',
  'SourceFlow.nodeManagement': 'SourceFlow.node_management',
  'SourceFlow.process': 'SourceFlow.copy',
  'SourceFlow.copy': 'SourceFlow.copy',
  // 事件流程 - nodered
  'EventFlow.add': 'EventFlow.add',
  'EventFlow.edit': 'EventFlow.edit',
  'EventFlow.delete': 'EventFlow.delete',
  'EventFlow.design': 'EventFlow.design',
  'EventFlow.save': 'EventFlow.save',
  'EventFlow.deploy': 'EventFlow.deploy',
  'EventFlow.import': 'EventFlow.import',
  'EventFlow.export': 'EventFlow.export',
  'EventFlow.nodeManagement': 'EventFlow.node_management',
  'EventFlow.process': 'EventFlow.process',
  'EventFlow.copy': 'EventFlow.copy',
  // 数据看板
  'Dashboards.add': 'Dashboards.add',
  'Dashboards.preview': 'Dashboards.preview',
  'Dashboards.design': 'Dashboards.design',
  'Dashboards.edit': 'Dashboards.edit',
  'Dashboards.delete': 'Dashboards.delete',
  'Dashboards.save': 'Dashboards.save',
  'Dashboards.export': 'Dashboards.export',
  'Dashboards.import': 'Dashboards.import',
  // 用户管理
  'UserManagement.add': 'UserManagement.add',
  'UserManagement.edit': 'UserManagement.edit',
  'UserManagement.enable': 'UserManagement.enable',
  'UserManagement.disable': 'UserManagement.disable',
  'UserManagement.resetPassword': 'UserManagement.resetPassword',
  'UserManagement.delete': 'UserManagement.delete',
  'UserManagement.roleSettings': 'UserManagement.role_setting',
  // 插件管理
  'PluginManagement.install': 'PluginManagement.install',
  'PluginManagement.unInstall': 'PluginManagement.unInstall',
  'PluginManagement.update': 'PluginManagement.update',
  // 报警，特殊点，主项目也有一个
  'Alert.confirm': 'Alert.confirm',
  // 废弃
  'appGui.deploy': 'appGui.deploy',
  'appGui.generate': 'appGui.generate',
  'appSpace.add': 'appSpace.add',
  'appSpace.delete': 'appSpace.delete',
  'appSpace.deleteHTML': 'appSpace.deleteHTML',
  'appSpace.coding': 'appSpace.coding',
  'appSpace.showPage': 'appSpace.showPage',
  'appSpace.newPage': 'appSpace.newPage',
  'appSpace.newgenerate': 'appSpace.newgenerate',
  // 国际化管理
  'Localization.localesSetting': 'Localization.localesSetting',
  'Localization.editEntry': 'Localization.editEntry',
  'Localization.entryDelete': 'Localization.entryDelete',
  'Localization.newEntry': 'Localization.newEntry',
  // 菜单配置
  'MenuConfiguration.addOperation': 'MenuConfiguration.addOperation',
  'MenuConfiguration.editOperation': 'MenuConfiguration.editOperation',
  'MenuConfiguration.deleteOperation': 'MenuConfiguration.deleteOperation',
  'MenuConfiguration.addMenu': 'MenuConfiguration.addMenu',
  'MenuConfiguration.editMenu': 'MenuConfiguration.editMenu',
  'MenuConfiguration.deleteMenu': 'MenuConfiguration.deleteMenu',
  'MenuConfiguration.enabledMenu': 'MenuConfiguration.enabledMenu',
};
